<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<!--根据名字进行替换-->
<div id="app">
  <cpn><span slot="left">标题</span></cpn>
  <cpn>
    <button slot="right">按钮</button>
  </cpn>
  <cpn><span slot="center">段落</span></cpn>
  <cpn><h3>hhhhhhhh</h3></cpn>
</div>
<template id="cpn">
  <div>
    <slot name="center">中间</slot>
    <slot name="left">左边</slot>
    <slot name="right">右边</slot>
    <slot></slot>
  </div>
</template>
<script src="../js/vue.js"></script>
<script>
  const vm = new Vue({
    el: '#app',
    data: {},
    components: {
      cpn: {
        template: '#cpn'
      }
    }
  })
</script>

</body>
</html>